package com.ddm.entity.vxEntity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.Version;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import org.springframework.data.annotation.Transient;

import java.io.Serializable;
import java.time.LocalDateTime;

/**
 * <p>
 * 
 * </p>
 *
 * @author horizon
 * @since 2025-01-17
 */
@Data
@EqualsAndHashCode(callSuper = false)
@ApiModel(value="Test对象", description="")
public class Test implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "答题情况表id")
    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    @Version
    private Integer version;

    @ApiModelProperty(value = "试卷表id")
    private Long examId;

    @ApiModelProperty(value = "用户id")
    private Long userId;

    @ApiModelProperty(value = "试题表id")
    private Long questionId;


    @ApiModelProperty(value = "用户答案")
    private String userAnswer;

    @ApiModelProperty(value = "试题分值")
    private Integer questionScore;

    @ApiModelProperty(value = "用户得分")
    private Integer userScore;

    @ApiModelProperty(value = "回答时间")
    private Integer answerTime;

    @ApiModelProperty(value = "0为错误，1为正确")
    private Boolean isCorrect;

}
